package com.chilli.cosima.utils;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;

public class SpringUtils
{
    private static ApplicationContext context;

    public static void setApplicationContext(ApplicationContext applicationContext)
            throws BeansException
    {
        context = applicationContext;
    }

    public static Object getBean(String name)
    {
        return context.getBean(name);
    }
}
